package com.learn.springboot.param;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * 学生参数
 *
 * @author Don
 * @date 2020/07/08
 */
@Data
public class StudentParam {
    @NotNull(message = "名字不能为空")
    private String name;

    @NotNull(message = "性别不能为空")
    private String sex;

    @Max(value = 99)
    @Min(value = 1)
    private Integer age;
}
